<template>
    <web-view :src="webUrl" />
</template>
  
<script setup lang="ts">
import { ref } from 'vue'
import { onLoad } from "@dcloudio/uni-app"
const webUrl = ref<any>('')
onLoad((options : any) => {
    const { url } = options
    if(url){
        webUrl.value = url
    }else{
        uni.showToast({
            title: '访问的页面不存在~'
        })
        uni.navigateBack({ delta: 1 })
    }
})
</script>
  
  